how to add static routes on centos7¶
add static routes
vi /etc/sysconfig/static-routes route add –host 192.168.1.2 gw 192.168.1.1 route add –net 192.168.1.0/24 gw 192.168.1.1two network cards
vi /etc/sysconfig/network-scripts/ifcfg-eth0 IPV4_ROUTE_METRIC=99